package com.helloworld;

import com.googlecode.androidannotations.annotations.EActivity;
import com.googlecode.androidannotations.annotations.OptionsItem;
import com.googlecode.androidannotations.annotations.OptionsMenu;

import android.app.Activity;
import android.content.Intent;
import android.view.MenuItem;

@EActivity(R.layout.activity_main)
@OptionsMenu(R.menu.activity_main)
public class MainActivity2 extends Activity {

	@OptionsItem(R.id.menu_open_activity_main)
	protected void openMainActivity(MenuItem menuItem) {
		startActivity(new Intent(this, MainActivity.class));
		finish();
	}

	@OptionsItem(R.id.menu_open_activity_main_2)
	protected void openMainActivity2(MenuItem menuItem) {
		MainActivity2_.intent(this).start();
		finish();
	}
}